cmake_minimum_required(VERSION 3.5.1)
project(DLList)

set(DLList_SRC dllist.c)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PUBLIC_DEMO})

add_library(LDLList STATIC ${DLList_SRC})
set_target_properties(LDLList PROPERTIES OUTPUT_NAME ldllist)

add_library(ldllist SHARED ${DLList_SRC})

if(LINUX)
	install(TARGETS LDLList ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS ldllist LIBRARY DESTINATION ${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/List/dllist.h
		DESTINATION ${INSTALL_DIR}/include/liblds)
endif()
